package com.hulk.boot.zookeeper.factory;

import org.apache.curator.framework.CuratorFramework;

/**
 * @author cmt
 *
 */
public class CuratorFactory {
	private final CuratorFramework client;

	public CuratorFactory(CuratorFramework  curatorFramework) {
		this.client = curatorFramework;
	}

	public CuratorFramework getClient() {
		return this.client;
	}

	public void destroy() {
		this.client.close();
	}
	
	
	
}